package com.topisv.tms.rest.qimen.command;

import com.topisv.tms.exception.PaiUException;
import com.topisv.tms.rest.qimen.request.RequestParams;
import com.topisv.tms.rest.qimen.response.ResponseParams;

/**
 * 奇门请求接口
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-5-4      CC            1.0           Create
 */
public interface IQMRequestCommand {

	/**
	 * 奇门请求的具体实现
	 * @param params
	 * @throws PaiUException
	 */
	ResponseParams execute(RequestParams params) throws PaiUException;
	/**
	 * 奇门请求的发送之后
	 * @param params
	 * @throws PaiUException
	 */
	void executeBefore(ResponseParams qmResponse) throws PaiUException;

}
